/* 
 * File:   DriverPoint.cpp
 * Author: AXIOO
 *
 * Created on March 7, 2012, 2:44 PM
 */

#include <cstdlib>
#include <iostream>
#include "../Point/Point.h"
using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {
    Point p1,p2(1,0);
    Point p3(3,5);
    
	cout << "P1" << p1 << endl;
	cout << "P2" << p2 << endl;
	cout << "P3" << p3 << endl;
	
	cout << "P1=P2" <<endl;
	cout << "P2=P3" <<endl;
	p1=p2;
	p2=p3;
	cout << "P1" << p1 << endl;
	cout << "P2" << p2 << endl;

    cout << "P1" << p1 << endl;
	cout << "P2" << p2 << endl;	
    cout << "P3 = P1+P2" <<endl;
    p3 = p1+p2;
    cout << "P3" << p3 << endl;
	
    cout << "P1" << p1 << endl;
	cout << "P2" << p2 << endl;	
    cout << "P3 = P1-P2" <<endl;
    p3 = p1-p2;
    cout << "P3" << p3 << endl;
    
    cout << "P1" << p1 << endl;
    cout << "P2 = 5*P1"<<endl;
    cout << "P3 = P1*5"<<endl;
    p2 = 5*p1;
    p3 = p1*5;
    cout << "P2" << p2 << endl;
	cout << "P3" << p3 << endl;	
    
    p1 = Point(5,25);
    cout << "P1" << p1 << endl;
    cout << "P2 = 5/P1"<<endl;
    cout << "P3 = P1/5"<<endl;
    p2 = 5/p1;
    p3 = p1/5;
    cout << "P2" << p2 << endl;
	cout << "P3" << p3 << endl;	
    
    cout << "P1" << p1 << endl;
	cout << "P2" << p2 << endl;	
    cout << "P2.P1 : " << p1.dot(p2) << endl;
    return 0;
}

